﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows.Data;

namespace ESC.Designer.Resources
{
    public class MachineisshowConvert : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value==null)
            {
                return "错误";
            }else 
            if (value.ToString() == "True")
            {
                return "顯示";
            }
            else
            {
                return "不顯示";
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }

    public enum Machineisshow
    {
        顯示 = 'Y',
        不顯示 = 'N'
    }
}
